package com.india.project.push.service.impl;

import com.india.project.push.domain.SoHvBarcodeVo;
import com.india.project.push.mapper.SoHvBarcodeVoMapper;
import com.india.project.push.service.ISoHvBarCodeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class SoHvBarCodeVoImpl implements ISoHvBarCodeVo {
    @Autowired
    private SoHvBarcodeVoMapper soHvBarcodeVoMapper;

    @Override
    @Transactional
    public List<SoHvBarcodeVo> searchAll() {
        return soHvBarcodeVoMapper.searchAll();
    }

    @Override
    @Transactional
    public int otcWmsSuccess(List<String> barcodeList) {
        return soHvBarcodeVoMapper.otcWmsSuccess(barcodeList);
    }

    @Override
    @Transactional
    public int otcWmsFail(List<String> barcodeList) {
        return soHvBarcodeVoMapper.otcWmsFail(barcodeList);
    }

    @Override
    public int otcWmsPush() {
        return soHvBarcodeVoMapper.otcWmsPush();
    }

    @Override
    public int otcWmsPushFlag(List<String> barcodeList) {
        return soHvBarcodeVoMapper.otcWmsPushFlagIng(barcodeList);
    }
}
